package com.zb.springevent.event;

import org.springframework.context.ApplicationEvent;

/**
 * @Author zb
 * @Date 2025/6/16 13:30
 */
public class GoodsAddEvent extends ApplicationEvent {
    private String topic;
    private String payload;

    public GoodsAddEvent(Object source) {
        super(source);
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }
}
